import axios from 'axios'
const MyHttpServer = {}
MyHttpServer.install = (Vue)=>{
 
	// axios.defaults.baseURL = 'https://api.feiyanghy.life'
	axios.defaults.baseURL = 'https://shopapi.feiyanghy.com'
	

	// axios.defaults.baseURL = 'http://106.15.40.216'
	// axios.defaults.baseURL = 'http://47.103.92.96:80'
 	
	Vue.prototype.$http = axios
	
	/*// 添加请求拦截器，在请求头中加token
	axios.interceptors.request.use(
	  config => {
	    if (localStorage.getItem('Authorization')) {
	      config.headers.Authorization = localStorage.getItem('Authorization');
	    }
	    return config;
	  },
	  error => {
	    return Promise.reject(error);
	  });*/
}
 export default MyHttpServer